import {Fortune} from "../../types.ts";
import Left from "./Left.tsx";
import Right from "./Right.tsx";

interface TopProps {
    fortune?: Fortune
}

function Top({fortune}: TopProps) {
    return (
        <div className="top">
            <Left content={fortune?.all}/>
            <Right fortune={fortune}/>
        </div>
    )
}

export default Top;